package com.nanfang51g3.ckz.di;

import android.app.Application;
import android.content.res.Resources;

import com.nanfang51g3.ckz.application.CkzApplication;

import javax.inject.Singleton;

import dagger.Module;
import dagger.Provides;

/**
 * Created by Administrator on 2016/4/12.
 */
@Module
public class MainModule {
    private CkzApplication ckzApplication;


    public MainModule(CkzApplication ckzApplication) {
        this.ckzApplication = ckzApplication;
    }

    @Provides
    @Singleton
    protected Application provideApplication() {
        return ckzApplication;
    }

    @Provides
    @Singleton
    protected Resources provideResource() {
        return ckzApplication.getResources();
    }

}
